﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using Ninject.Modules;
using Resto.CostControl.Core.Services;
using QuickApp.MVCControl;

namespace Resto.CostControl.Core
{
    public class RegisterServices : NinjectModule
    {
        public override void Load()
        {
            Bind<DbContext>().To<CostContext>().InRequestScope();
            Bind<IEnumService>().To<DicEnumService>().InRequestScope();
            Bind<PrivilegeService>().To<PrivilegeService>().InRequestScope();
            Bind<RoleService>().To<RoleService>().InRequestScope();
        }
    }
}
